﻿using System.ServiceModel;
using System.ServiceModel.Web;
using AgileDashboard.AppCode;

namespace AgileDashboard.services
{
    [ServiceContract]
    public interface IUIData
    {
        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        TeamStatus GetTeamStatus(string iterationSchedule, string team);

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        TeamStatus[] GetMultiTeamStatus(string iterationSchedule, string[] teams);

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        Project[] GetMultiConfiguredReleaseStatus();

    }
}
